using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MaskBoard : MonoBehaviour
{
    public RectTransform m_FlloweCom;
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        var rectTransform = GetComponent<RectTransform>();
        var newPos = m_FlloweCom.position;
        newPos.x += m_FlloweCom.sizeDelta.x / 2 +2;

        var newSize = m_FlloweCom.sizeDelta;
        newSize.x /= 2;
        rectTransform.position = newPos;
        rectTransform.sizeDelta = newSize;
    }
}
